package com.SH.mapper;

import com.SH.pojo.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:
 * @Project:
 * @CreateDate: Created in 2020/3/4 13:51
 * @Author: YXH
 */
@Repository
public interface GoodsMapper {

    List<Goods>  getAllGood ();

    Goods getById(int id);

    void delGood(int id);

    void cancelGood(Goods goods);

    void addGood(Goods goods);

    List<Goods> getCidGoods(int cid);

    List<Goods> findGoods(String name);

    List<Goods> sellingGoods(int uid);

    void updateGoods(Goods goods);
}
